import request from '@/utils/request';

const pre = '/papers';

// 查看
export function listApi(params: any) {
  return request.get(pre, { params });
}

// 添加/修改
export function storeApi(params: Record<string, any>) {
  return request.post(pre, params);
}

// 查看
export function detailApi(params: any) {
  return request.get(`${pre}/detail`, { params });
}

// 删除
export function deleteApi(id: string | number) {
  return request.post(`${pre}/${id}/delete`);
}
